﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RaisingStudio.Data;
using System.Data;

namespace WpfApplication1
{
    [Serializable]
    [DataTable("DAC_USER")]
    public class SystemUser
    {
        #region Members

        private string _UserID;
        /// <summary>
        /// UserID.
        /// </summary>
        [System.ComponentModel.Description("UserID")]
        [DataColumn("USER_ID", IsPrimaryKey=true, AllowDBNull=false)]
        public string UserID
        {
            get
            {
                return this._UserID;
            }
            set
            {
                this._UserID = value;
            }
        }

        private string _UserName;
        /// <summary>
        /// UserName.
        /// </summary>
        [System.ComponentModel.Description("UserName")]
        [DataColumn("USERNAME", AllowDBNull = false)]
        public string UserName
        {
            get
            {
                return this._UserName;
            }
            set
            {
                this._UserName = value;
            }
        }

        private string _FullName;
        /// <summary>
        /// FullName.
        /// </summary>
        [System.ComponentModel.Description("FullName")]
        [DataColumn("FULLNAME")]
        public string FullName
        {
            get
            {
                return this._FullName;
            }
            set
            {
                this._FullName = value;
            }
        }

        private string _Password;
        /// <summary>
        /// Password.
        /// </summary>
        [System.ComponentModel.Description("Password")]
        [DataColumn("USER_PWD")]
        public string Password
        {
            get
            {
                return this._Password;
            }
            set
            {
                this._Password = value;
            }
        }

        private bool? _ChangingPassword;
        /// <summary>
        /// ChangingPassword.
        /// </summary>
        [System.ComponentModel.Description("ChangingPassword")]
        [DataColumn("CHANGINGPWD", DbType=DbType.Int32)]
        public bool? ChangingPassword
        {
            get
            {
                return this._ChangingPassword;
            }
            set
            {
                this._ChangingPassword = value;
            }
        }

        private bool? _UserLocked;
        /// <summary>
        /// UserLocked.
        /// </summary>
        [System.ComponentModel.Description("UserLocked")]
        [DataColumn("USERLOCKED", DbType = DbType.Int32)]
        public bool? UserLocked
        {
            get
            {
                return this._UserLocked;
            }
            set
            {
                this._UserLocked = value;
            }
        }

        private DateTime? _LastLogin;
        /// <summary>
        /// LastLogin.
        /// </summary>
        [System.ComponentModel.Description("LastLogin")]
        [DataColumn("LASTLOGIN", DbType = DbType.Int32)]
        public DateTime? LastLogin
        {
            get
            {
                return this._LastLogin;
            }
            set
            {
                this._LastLogin = value;
            }
        }

        private string _UserDescription;
        /// <summary>
        /// UserDescription.
        /// </summary>
        [System.ComponentModel.Description("UserDescription")]
        [DataColumn("USER_DESC", DbType = DbType.Int32)]
        public string UserDescription
        {
            get
            {
                return this._UserDescription;
            }
            set
            {
                this._UserDescription = value;
            }
        }

        #endregion
    }
}
